﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="TestsList.aspx.cs" Inherits="TestsList" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style>
.style
{
font:20px Arial,Serif;
}
    .style1
    {
        width: 698px;
    }
    .style2
    {
        width: 120px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
<table width="100%">
  <tr>
      <td colspan="5" align="right" >
      <h2>Test List</h2>
      </td>
  
  </tr>
      
  <tr>
  <td height="30px" width="120px">
      <asp:LinkButton ID="lnkTestScheduled" runat="server" onclick="lnkTestScheduled_Click" 
          ><b>Test Scheduled</b></asp:LinkButton>

  </td>
  
  <td width="20px">|</td>
  
  <td class="style2">
      <asp:LinkButton ID="lnkTestPending" runat="server" 
          onclick="lnkTestPending_Click" ><b>Test Pending</b></asp:LinkButton>

  </td>

    <td width="20px">|</td>
  
  <td>
      <asp:LinkButton ID="lnkTestCompteted" runat="server" 
          onclick="lnkTestCompteted_Click" ><b>Test Completed</b></asp:LinkButton>

  </td>



  
  </tr>
  </table>
  <table>
  <tr>
 <td colspan="3">

     <asp:GridView ID="grdTestList" runat="server" 
         AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" 
                                BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="Vertical" 
         DataKeyNames="TestId,States,TestAttemptId" Width="941px" 
         onselectedindexchanged="grdTestList_SelectedIndexChanged" 
         onrowcommand="grdTestList_RowCommand">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
            <Columns>
                            <asp:ButtonField ButtonType="Link" CommandName="Select" 
                                DataTextField="TestId" HeaderText="Id" SortExpression="TestId" 
                                ItemStyle-Font-Underline="true" >
<ItemStyle Font-Underline="True"></ItemStyle>
                            </asp:ButtonField>
                            <asp:BoundField DataField="TestName" HeaderText="Name" 
                                SortExpression="TestName" />
                            <asp:BoundField DataField="SubjectName" HeaderText="Subject" 
                                SortExpression="SubjectName" />
                            <asp:BoundField DataField="TopicName" HeaderText="Topics" 
                                SortExpression="TopicName" />
                            <asp:BoundField DataField="StartDate" HeaderText="StartDate" 
                                SortExpression="StartDate" />
                            <asp:BoundField DataField="EndDate" HeaderText="EndDate" 
                                SortExpression="EndDate" />
                            <asp:BoundField DataField="States" HeaderText="Status" 
                                SortExpression="Status" />
                            <asp:BoundField DataField="TestAttemptId" HeaderText="AttemptId" 
                                SortExpression="AttemptId" />
                            <asp:BoundField DataField="AttemptNo" HeaderText="AttemptNo" 
                                SortExpression="AttemptNo" />
                            <asp:TemplateField HeaderText="Result">
                                <ItemTemplate>
                                    <asp:Button ID="btnScore" runat="server" Text="ScoreCard"
                                        CommandName="btnScoreClick" CommandArgument='<%# Eval("TestId") %>'
                                       BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lablRank" runat="server" Text="Rank"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="linkRank" runat="server" Font-Underline="true" CommandName="btnLinkRankClick" CommandArgument='<%# Eval("TestId") %>'>Rank</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
      
  </td>

  </tr>
  </table>
 </div>

</asp:Content>

